package com.sky.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@ApiModel("商家订单查询dto")
public class OrdersPageQueryDTO implements Serializable {

    @ApiModelProperty("页码数")
    private int page;
    @ApiModelProperty("每页显示数量")
    private int pageSize;
    @ApiModelProperty("订单号")
    private String number;
    @ApiModelProperty("手机号")
    private  String phone;
    @ApiModelProperty("订单状态")
    private Integer status;
    @ApiModelProperty("支付状态")
    private Integer payStatus;

    @ApiModelProperty("起始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime beginTime;
    @ApiModelProperty("结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    @ApiModelProperty("用户id")
    private Long userId;

}
